home *** CD-ROM | disk | FTP | other *** search
- Path: midland.co.nz!usenet
- From: lowefam@igrin.co.nz (Jarrod S Lowe)
- Newsgroups: comp.lang.c++,comp.os.msdos.programmer
- Subject: Timer (0x1C) Interrupt exactly 18.2 seconds?
- Date: Fri, 23 Feb 1996 00:57:48 GMT
- Organization: Midland Internet Limited, Network Services
- Message-ID: <4givrv$cim@midland.co.nz>
- NNTP-Posting-Host: lowefam.igrin.co.nz
- X-Newsreader: Forte Free Agent 1.0.82
-
- Hi
-
- I have a C++ Program (on DOS) in which a function is attached to the
- Timer (0x1C) Interrupt.
-
- The function has a static int to count the number of times it has been
- called. Every 'x' calls, It executes another function.
-
- 'x' is 546, which one would expect to result in the function being
- called every 30 seconds. However, it is called every 29 point
- something seconds. Over 5 minutes you can see it has drifted. If I had
- one to 'x' (now 547) it is called every 30 point something seconds -
- the same problem in reverse.
-
- This program is expected to run, continually, for YEARS - so a drift
- that shows up in 5 minutes will make it unusable.
-
- Does anybody have any ideas WHY this is happening?
-
- Thanks
- Jarrod S Lowe
- (lowefam@igrin.co.nz)
-
-